package com.wlk.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_dep")
public class Department {
    // 部门ID
    @TableId(value = "dep_id")
    private Integer depId;

    // 部门编码
    @TableField(value = "dep_code")
    private String depCode;

    // 部门名称
    @TableField(value = "dep_name")
    private String depName;

    // 是否为明细节点
    @TableField(value = "is_detailed")
    private Integer isDetailed;

    // 层级
    @TableField(value = "dep_level")
    private Integer depLevel;

    // 部门负责人ID
    @TableField(value = "dep_header_id")
    private Integer depHeaderId;
}
